package com.rmb.mart.entity.linxi.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wan
 * @Title: OrderExcel
 * @Package vo
 * @Description: wan
 * @date 2021/1/2311:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderExcel implements Serializable {

    @ExcelIgnore
    private Long id;

    @ExcelProperty("订单编号")
    private Long rechargeId;

    @ExcelProperty("公司名称")
    private String businessName;

    @ExcelProperty("姓名")
    private String registrantName;

    @ExcelProperty("手机号")
    private String registrantPhone;

    @ExcelProperty("订单金额")
    private Double dealPrice;

    @ExcelProperty("充值方式")
    private Integer dealName;

    @ExcelProperty("支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rechargeDate;

    @ExcelProperty("凭证地址")
    private String businessLicenseUrl;
}
